package com.hy.erp.inventory.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Index;
/*import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
*/
import com.hy.erp.inventory.dao.interfaces.IDepotTypeDao;
import com.hy.erp.inventory.pojo.interfaces.IDefineDepotReason;
import com.hy.erp.inventory.pojo.interfaces.IDepotType;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;

/**
 * 
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-10-5；时间：上午10:21:55</li>
 * <li>类型名称：DepotType</li>
 * <li>设计目的：仓库类型</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
@Entity
@Table(name="t_depotType")
/*
@Name("depotType")
@Scope(ScopeType.SESSION)
@ DaoA ( IDepotTypeDao.class )
*/
public class DepotType extends MyBaseModel //implements IPositonType
//public class DepotType extends AbstractPersistentEntity implements IDepotType
{
	private static final long	serialVersionUID	=
														4293413738216412742L ;



	
	/**
	 * 构造函数
	 */
	public DepotType(){}
	
	public DepotType( String depotTypeName) {
		super();
		
		
	}

	//#######################################################################
	
	

	@Column(name="depotTypeName",unique=true,nullable=false,insertable=true,updatable=true)
	@Index(name="depotTypeNameIndex")
	public String getDepotTypeName() {
		return this.get(IDepotType.DEPOTTYPENAME) ;
	}

	//#######################################################################
	

	public void setDepotTypeName(String depotTypeName) {
		super.set (IDepotType.DEPOTTYPENAME , depotTypeName );
	}
	
	@ Column ( name = "description" , length = 200 )
	@ Index ( name = "descriptionIndex" )
	public String getDescription ( )
	{
		return this.get(IDepotType.DESCRIPTION) ;
	}

	public void setDescription (
									String description )
	{
		super.set (IDepotType.DESCRIPTION , description );
	}
}
